package com.acme.task2;

/**
 * This class tests Garbage Collector
 * 
 * @author Anton Kotov
 */
public class GCTest {
	/**
	 * Main method
	 * 
	 * @param args
	 */
	public static void main(String[] args) {
		int numberOfIterations = 10000000;
		Foo[] fooArray = new Foo[numberOfIterations];

		for (int i = 0; i < numberOfIterations; i++) {
			fooArray[i] = new Foo(i);
		}
	}
}
